#ifndef ADDEXEC_H
#define ADDEXEC_H

#include <QDialog>
#include <QFileDialog>
#include "exec.h"

namespace Ui {
    class AddExec;
}

class AddExec : public QDialog {
    Q_OBJECT
    Q_DISABLE_COPY(AddExec)
public:
    explicit AddExec(QWidget *parent = 0);
    virtual ~AddExec();

protected:
    virtual void changeEvent(QEvent *e);

signals:
    void execAdded(Exec*);

private:
    Ui::AddExec *m_ui;

private slots:
    void on_cancelButton_clicked();
    void on_addButton_clicked();
    void checkPathes();
};

#endif // ADDEXEC_H
